package com.example.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class PageDTO {

    //("页码，默认值1")
    @NotNull(message = "当前页不可为空")
    private Integer current = 1;

    //("页大小，默认值10")
    @NotNull(message = "当前页个数不可为空")
    private Integer size = 2;
}
